package com.tansun.easycare.rule.decisiontree.entity;

import org.hibernate.validator.constraints.Length;

import com.tansun.easycare.rule.common.entity.RuleBaseEntity;

/**
 * 决策树节点信息Entity
 *
 * @author lxs
 * @version 2017-03-08
 */
public class RuleTreeNode extends RuleBaseEntity<RuleTreeNode> {

    private static final long serialVersionUID = 1L;
    private String manageId;        // 规则管理ID
    private String projectCode;        // 规则库编码
    private String version;        // 版本号
    private String nodeId;    //树节点
    private String pid;        // 节点父id
    private String type;        // 节点类型
    private Integer num;        // 排序号
    private Integer floor;        // 当前所属层
    private String totalFloor;        // 总层数
    private String isLeaf;        // 是否叶子
    private String actionSceneId;        // 动作场景ID
    private  String  isReleModel;

    private String nodeName;
    
    private String nodehtml; //决策树接待你条件，规则集形式 html存储
    
    private String cfyResult;//存储分类结果的值

	public RuleTreeNode() {
        super();
    }

    public RuleTreeNode(String id) {
        super(id);
    }

    @Length(min = 0, max = 50, message = "规则管理ID长度必须介于 0 和 50 之间")
    public String getManageId() {
        return manageId;
    }

    public void setManageId(String manageId) {
        this.manageId = manageId;
    }

    @Length(min = 0, max = 50, message = "规则库编码长度必须介于 0 和 50 之间")
    public String getProjectCode() {
        return projectCode;
    }

    public void setProjectCode(String projectCode) {
        this.projectCode = projectCode;
    }

    @Length(min = 0, max = 10, message = "版本号长度必须介于 0 和 10 之间")
    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    @Length(min = 0, max = 11, message = "节点父id长度必须介于 0 和 11 之间")
    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    @Length(min = 0, max = 10, message = "节点类型长度必须介于 0 和 10 之间")
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Length(min = 0, max = 11, message = "排序号长度必须介于 0 和 11 之间")
    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    @Length(min = 0, max = 11, message = "当前所属层长度必须介于 0 和 11 之间")
    public Integer getFloor() {
        return floor;
    }

    public void setFloor(Integer floor) {
        this.floor = floor;
    }

    @Length(min = 0, max = 11, message = "总层数长度必须介于 0 和 11 之间")
    public String getTotalFloor() {
        return totalFloor;
    }

    public void setTotalFloor(String totalFloor) {
        this.totalFloor = totalFloor;
    }

    @Length(min = 0, max = 10, message = "是否叶子长度必须介于 0 和 10 之间")
    public String getIsLeaf() {
        return isLeaf;
    }

    public void setIsLeaf(String isLeaf) {
        this.isLeaf = isLeaf;
    }

    @Length(min = 0, max = 10, message = "动作场景ID长度必须介于 0 和 10 之间")
    public String getActionSceneId() {
        return actionSceneId;
    }

    public void setActionSceneId(String actionSceneId) {
        this.actionSceneId = actionSceneId;
    }

    public String getNodeName() {
        return nodeName;
    }

    public void setNodeName(String nodeName) {
        this.nodeName = nodeName;
    }

    public String getNodeId() {
        return nodeId;
    }

    public void setNodeId(String nodeId) {
        this.nodeId = nodeId;
    }

	public String getIsReleModel() {
		return isReleModel;
	}

	public void setIsReleModel(String isReleModel) {
		this.isReleModel = isReleModel;
	}

	public String getNodehtml() {
		return nodehtml;
	}

	public void setNodehtml(String nodehtml) {
		this.nodehtml = nodehtml;
	}
    
	public String getCfyResult() {
		return cfyResult;
	}

	public void setCfyResult(String cfyResult) {
		this.cfyResult = cfyResult;
	}
}